home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11921 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: lrz-muenchen.de!news
  2. From: watzka@stat.uni-muenchen.de (Kurt Watzka)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Float to String
  5. Date: 27 Mar 1996 18:49:34 GMT
  6. Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
  7. Distribution: world
  8. Message-ID: <4jc2ju$6gm@sparcserver.lrz-muenchen.de>
  9. References: <4is29s$h1a@dfw-ixnews6.ix.netcom.com> <DoxG0L.H1A@news.cern.ch> <4jbiga$69p@news1.mnsinc.com>
  10. NNTP-Posting-Host: sun2.lrz-muenchen.de
  11.  
  12. huang@mnsinc.com (Szu-Wen Huang) writes:
  13.  
  14. >Maurizio Loreti (loreti@mxsld2.pd.infn.it) wrote:
  15. >: In article <4is29s$h1a@dfw-ixnews6.ix.netcom.com>, scoshe@ix.netcom.com(Christopher Scott Shelton ) writes:
  16. >: >Is it possible to convert a float to a string?  like the itoa function.
  17.  
  18. >: Yes.
  19.  
  20. >Maurizio, there are two types of people who read your post:
  21.  
  22. >1.  Those that know the answer
  23. >2.  Those that don't know the answer
  24.  
  25. >Unless you're trying to be funny, the first type doesn't care what you
  26. >write, and the second type won't care unless you tell them the answer.
  27. >Since you exerted the effort to post a reply, perhaps it will not strain
  28. >you too much to mention the function 'sprintf()'?
  29.  
  30. I think I know the answer, so I might belong to the first group. Anyway,
  31. I think that Maurizio _answered_ Mr. Shelton's question. If Mr. Shelton
  32. had had a look at the FAQ (even searching it for "itoa" might have given
  33. him a hint), he would not have wondered whether it is possible to
  34. convert a float to a string.
  35.  
  36. Kurt
  37. -- 
  38. | Kurt Watzka                             Phone : +49-89-2180-6254
  39. | watzka@stat.uni-muenchen.de
  40. | ua302aa@sunmail.lrz-muenchen.de
  41.